<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateWechatTemplateNoticesTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('wechat_template_notices', function(Blueprint $table)
		{
			$table->integer('id', true);
			$table->integer('authorizer_id')->comment('关联authorizers表的id');
			$table->string('template_id')->comment('公众号的微信模板id');
			$table->string('template_id_short')->comment('微信模板库中模板的编号');
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('wechat_template_notices');
	}

}
